home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc International / Development / TSMTEsample⁄1.1 / Source / CompDefs.h next >
Encoding:
C/C++ Source or Header  |  1996-11-14  |  1.5 KB  |  60 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CompDefs.h
  3.  
  4.     Contains:    Defines for compiling OpenDoc parts.
  5.  
  6.     Written by:    Steve Smith
  7.     
  8.     Copyright:    © 1994,95 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #ifndef _COMPILERDEFS_
  12. #define _COMPILERDEFS_
  13.  
  14. // Just before you are ready to ship, uncomment the line below.
  15. // Doing so will remove all the SampleCode_SamplePartMethodDebug()
  16. // lines from the generated code.
  17. // Note: The _RETAIL switch can be found in somcdev.h
  18. //#define _RETAIL
  19.  
  20. // We should no longer be using the "old" routine names/structs.
  21. #ifndef OLDROUTINENAMES
  22. #define OLDROUTINENAMES 0
  23. #endif
  24. #ifndef OLDROUTINELOCATIONS
  25. #define OLDROUTINELOCATIONS 0
  26. #endif
  27.     
  28. // Some public headers #ifdef out structs not useful to other platforms.
  29. #ifndef _PLATFORM_MACINTOSH_
  30. #define _PLATFORM_MACINTOSH_ 1
  31. #endif
  32.  
  33. // If you use the StdTypIO utility, you must define the platform's
  34. // endian-ness.
  35. #ifndef _PLATFORM_BIG_ENDIAN_
  36. #define _PLATFORM_BIG_ENDIAN_ 1
  37. #endif
  38.  
  39. // There is an apparent bug in the ConditionalMacros.h v2.1 header. This
  40. // prevents the Symantec 8.0 C++ compiler from exporting symbols. To work
  41. // around the problem, we define PRAGMA_IMPORT_SUPPORTED.
  42. #if defined(__SC__)
  43. #define PRAGMA_IMPORT_SUPPORTED 1
  44. #endif
  45.  
  46. // ODDebug must be defined because we are using Except.cpp & ODDebug.cpp.
  47. #ifdef _RETAIL
  48.     // turn off debugging
  49.     #ifndef ODDebug
  50.     #define ODDebug 0
  51.     #endif
  52. #else
  53.     // turn on debugging and traceback symbols (PPC only)
  54.     #ifndef ODDebug
  55.     #define ODDebug 1
  56.     #endif
  57.     #pragma traceback on
  58. #endif
  59.  
  60. #endif